package ex.com.jm.food.service.impl;

import java.util.List;

import ex.com.jm.food.dao.AddressDao;
import ex.com.jm.food.entity.Citys;
import ex.com.jm.food.entity.Countys;
import ex.com.jm.food.entity.Province;
import ex.com.jm.food.entity.Streets;
import ex.com.jm.food.service.AddressService;

public class AddressServiceImpl implements AddressService {

	private AddressDao addressDao;
	public AddressDao getAddressDao() {
		return addressDao;
	}

	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	@Override
	public List<Province> getProvinces() {
		// TODO Auto-generated method stub
		return this.getAddressDao().getProvinces();
	}

	@Override
	public List<Citys> getCitys(int proId) {
		// TODO Auto-generated method stub
		return this.getAddressDao().getCitys(proId);
	}

	@Override
	public List<Countys> getCountys(int cityId) {
		// TODO Auto-generated method stub
		return this.getAddressDao().getCountys(cityId);
	}

	@Override
	public List<Streets> getStreets(int countyId) {
		// TODO Auto-generated method stub
		return this.getAddressDao().getStreets(countyId);
	}

}
